package com.gable.exhibition.dao;

import com.gable.exhibition.model.Commission;

import java.util.List;
import java.util.Map;

public interface CommissionDao {
    int deleteByPrimaryKey(Long commissionId);

    int insert(Commission record);

    int insertSelective(Commission record);

    Commission selectByPrimaryKey(Long commissionId);

    int updateByPrimaryKeySelective(Commission record);

    int updateByPrimaryKey(Commission record);

    /**
     * 查询卫计委列表用于select选择
     * @param map
     * @Create user jacky
     * @Create date 2018/3/13
     * @return
     */
    List<Commission> queryCommission(Map map);

    /**
     * 校验卫计委是否存在
     * @param commissionName
     * @Create user jacky
     * @Create date 2018/3/13
     * @return
     */
    Long checkCommission(String commissionName);
}